package cn.web.tunnelrobot.dao;

import cn.web.tunnelrobot.dto.ImageInfoDTO;
import cn.web.tunnelrobot.pojo.ImageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 影像信息采集
 * @Author:lichuang
 */
public interface ImageInfoDao {
    //根据项目ID和里程查询报表信息
    List<ImageInfoDTO> getImageInfoByPrIdAndMileage(@Param("prId") Integer prId, @Param("imMileage") Integer imMileage);
    //添加项目里程信息
    int addImageInfo(ImageInfoDTO imageInfoDTO);
    //隧道数据
    ImageInfo getTunnel(@Param("imBelongsPlate") Integer imBelongsPlate,
                        @Param("imConstructionStatus") Integer imConstructionStatus,@Param("prId")Integer prId,@Param("min") Integer min,@Param("max") Integer max);

    ImageInfo getConstructionProgress(@Param("prId")Integer prId,@Param("imBelongsPlate") Integer imBelongsPlate,@Param("imConstructionStatus") Integer imConstructionStatus);

    int getImageInfoListCount(@Param("prId")Integer prId,
                         @Param("imMileage")Integer imMileage,
                         @Param("isId")Integer isId,
                         @Param("imBelongsPlate")Integer imBelongsPlate,
                         @Param("imConstructionStatus")Integer imConstructionStatus,
                         @Param("imDecideStatus")Integer imDecideStatus);

    List<ImageInfoDTO> getImageInfoList(@Param("prId")Integer prId,
                                     @Param("imMileage")Integer imMileage,
                                     @Param("isId")Integer isId,
                                     @Param("imBelongsPlate")Integer imBelongsPlate,
                                     @Param("imConstructionStatus")Integer imConstructionStatus,
                                     @Param("imDecideStatus")Integer imDecideStatus,
                                     @Param("pageNo")int pageNo, @Param("pageSize")Integer pageSize);

    List<ImageInfoDTO> getImageInfoListNew(ImageInfoDTO imageInfoDTO);

    List<ImageInfoDTO> getImageInfoListFY(ImageInfoDTO imageInfoDTO,@Param("pageNo")Integer pageNo, @Param("pageSize")Integer pageSize);

    int getImageInfoListFYCount(ImageInfoDTO imageInfoDTO);
}
